/**
 * Created by robot
 * DATE 2019/1/8
 * Describe
 */

require('./index.css')

var index_home = {
  init: function () {
    this.bindEvent()
  },
  bindEvent: function () {
    var that = this
    $('.index_footer_tab .tab_item').click(function (event) {
      $(this).siblings().removeClass('actived')
      $(this).addClass('actived')
      that.loadPage($(this).attr('data-page'))
    })
    $('.index_footer_tab .tab_item').eq(0).click()
  },
  loadPage: function (url) {
    $('.index_content').load(url)
  }

}
$(function () {
  index_home.init()
})
